﻿using System;
using System.Windows;
using System.Windows.Controls;

namespace LogoFX.Controls
{
    [TemplateVisualState(GroupName = "OpenCloseStates",Name="Open")]
    [TemplateVisualState(GroupName = "OpenCloseStates", Name = "Close")]
    public class NotificationItem : HeaderedContentControl
    {
        #region Fields

        private static readonly Type s_thisType = typeof(NotificationItem);

        #endregion

        #region Constructors

        public NotificationItem()
        {
            DefaultStyleKey = typeof(NotificationItem);
        }

        #endregion

        #region Routed Events

        #endregion

        #region Dependency Properties

        public static readonly DependencyProperty CookieProperty =
            DependencyProperty.Register(
                "Cookie",
                typeof(object),
                s_thisType,
                new PropertyMetadata(null));

        public static readonly DependencyProperty PinedProperty =
            DependencyProperty.Register(
                "Pined",
                typeof(bool),
                s_thisType,
                new PropertyMetadata(false));

        #endregion

        #region Public Properties

        public object Cookie
        {
            get { return (object)GetValue(CookieProperty); }
            set { SetValue(CookieProperty, value); }
        }

        public bool Pined
        {
            get { return (bool)GetValue(PinedProperty); }
            set { SetValue(PinedProperty, value); }
        }

        #endregion
    }
}
